package com.cn.mmd.service;

import com.cn.mmd.mapper.StudentCourseRubLessonMapper;
import com.cn.mmd.model.StudentCourseRubLesson;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 蹭课
 */

@Service("studentRubLessonService")
public class StudentRubLessonServiceImpl implements StudentRubLessonService {

    @Autowired
    private StudentCourseRubLessonMapper studentCourseRubLessonMapper;

    @Override
    public List<StudentCourseRubLesson> countByGrade(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.countByGrade(studentCourseRubLesson);
    }

    @Override
    public List<StudentCourseRubLesson> countByType(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.countByType(studentCourseRubLesson);
    }

    @Override
    public int insertSelective(StudentCourseRubLesson record) {
        return studentCourseRubLessonMapper.insertSelective(record);
    }

    @Override
    public List<StudentCourseRubLesson> selectByStuId(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.selectByStuId(studentCourseRubLesson);
    }

    @Override
    public StudentCourseRubLesson selectByStuIdCouId(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.selectByStuIdCouId(studentCourseRubLesson);
    }

    @Override
    public int deleteByStuIdCouId(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.deleteByStuIdCouId(studentCourseRubLesson);
    }

    @Override
    public List<StudentCourseRubLesson> selectByCouId(StudentCourseRubLesson studentCourseRubLesson) {
        return studentCourseRubLessonMapper.selectByCouId(studentCourseRubLesson);
    }


}
